package com.example.service.AsyncServiceImp;

import com.example.service.AsyncService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncServiceImpl implements AsyncService {
    @Async
    @Override
    public void asyncInvoke(AsyncExec consumer)throws Exception{
        consumer.exec();
    }
}
